﻿using UnityEngine;
using System.Collections;

public class InputUIManager : MonoBehaviour 
{
    public static InputUIManager instance;

    void Awake()
    {
        instance = this;
    }

    public GameObject[] inputUIs;
	// Use this for initialization
	public void EnableInputUI() 
    {
        for(int i=0;i<inputUIs.Length;i++)
        {
            inputUIs[i].SetActive(true);
        }
	}
	
	// Update is called once per frame
    public void DisabeInputUI () 
    {
        for(int i=0;i<inputUIs.Length;i++)
        {
            inputUIs[i].SetActive(false);
        }
	}

    public void SetUIStatus(bool showAll)
    {
        if(showAll)
        {
            for(int i=0;i<inputUIs.Length;i++)
            {
                inputUIs[i].SetActive(true);
            }
        }
        else
        {
            for(int i=0;i<inputUIs.Length;i++)
            {
                if(inputUIs[i].name.Contains("Special") && !inputUIs[i].name.Contains("Special1"))
                {
                    inputUIs[i].SetActive(true);
                }
                else
                {
                    inputUIs[i].SetActive(false);
                }
            }
        }
    }
}
